﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RegPort
{
    public partial class Monitor : Form
    {
        public Monitor()
        {
            InitializeComponent();
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void toolOpenRegMon_Click(object sender, EventArgs e)
        {
           
            
        }

        private void toolOpenPort_Click(object sender, EventArgs e)
        {
            //check if window already open
            FormCollection fc = Application.OpenForms;
            foreach (Form frm in fc)
            {
                if (frm.Name != "Monitor")
                    frm.Close();
            }

            Form f = new PortPanel();
            f.Show();
        }

        

        private void regmonAbout_Click(object sender, EventArgs e)
        {
            FormCollection fc = Application.OpenForms;
            foreach (Form frm in fc)
            {
                if (frm.Name != "Monitor")
                    frm.Close();
            }

            Form f = new About();
            f.Show();
        }



    }// eof
}
